﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Indochinaodyssey.UserControl.ContactUS
{
    public partial class ContactUS : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            try
            {
                String str = "<div>Full Name :" + this.ddlLastName.SelectedValue + " " + this.txtFullName.Text + "<br />Address :" + this.txtAddress.Text + "<br />Phone :&nbsp;" + this.txtPhone.Text + "<br />Email :" + this.txtEmail.Text + "<br />Subject :" + this.txtSubject.Text + "<br />Content :" + this.txtContent.Text + "</div>";
                string[] to = { "thangnd@tantinh.net" };
                clsBSSendMail.sendMail (to,"Mail ContactUS from indochinaodyssey : " + this.ddlLastName.SelectedValue + " " + this.txtFullName.Text, str);
                Response.Redirect("~/thankyoucontact.aspx");
            }
            catch (Exception)
            {

            }
        }
    }
}